<%--
  Created by IntelliJ IDEA.
  User: 98114
  Date: 2022/2/9
  Time: 16:21
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Spitter</title>
    <link rel="stylesheet" href="<c:url value="/resources/style.css" />">
</head>
<body>
  <c:forEach items="${spittleList}" var="spittle">
    <li id="spittle_<c:out value="spittle.id" />">
      <div class="spittleMessage">
        <c:out value="${spittle.message}"></c:out>
      </div>
      <div>
        <span class="spittleTime"><c:out value="${spittle.time}"></c:out></span>
        <span class="spittleLocation">
          (<c:out value="${spittle.latitude}" />,<c:out value="${spittle.longitude}" />)
        </span>
      </div>
    </li>
  </c:forEach>
</body>
</html>
